Waterproofing of fabrics